.container {
  height: 100vh; /* 固定高度为视口高度 */
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 防止整个容器滚动 */
}

.navbar {
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0; /* 防止导航栏被压缩 */
}

.formContainer {
  flex: 1;
  padding: 16px;
  padding-bottom: 32px;
  overflow-y: auto; /* 添加垂直滚动条 */
  overflow-x: hidden; /* 隐藏水平滚动条 */
  /* 自定义滚动条样式 */
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Webkit浏览器滚动条样式 */
.formContainer::-webkit-scrollbar {
  width: 6px;
}

.formContainer::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.formContainer::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.formContainer::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.formSection {
  background-color: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.sectionTitle {
  padding: 16px 16px 8px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
}

.formItem {
  padding: 12px 16px;
  border-bottom: 1px solid #f8f8f8;
}

.formItem:last-child {
  border-bottom: none;
}

.label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.required {
  color: #ff4d4f;
  margin-right: 4px;
  font-weight: bold;
}

.optional {
  color: #999;
  font-size: 12px;
  font-weight: normal;
  margin-left: 8px;
}

.input {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  background-color: #fafafa;
  transition: all 0.3s ease;
}

.input:focus {
  border-color: #1890ff;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  background-color: #fafafa;
  resize: none;
  transition: all 0.3s ease;
}

.textarea:focus {
  border-color: #1890ff;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.imageUploader {
  margin-top: 8px;
}

.uploadButton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  background-color: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.uploadButton:hover {
  border-color: #1890ff;
  background-color: #f0f8ff;
}

.uploadIcon {
  font-size: 24px;
  margin-bottom: 4px;
  color: #999;
}

.uploadText {
  font-size: 12px;
  color: #666;
}

.uploadTip {
  margin-top: 8px;
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

.submitSection {
  margin-top: 24px;
  padding: 0 16px;
}

.submitButton {
  width: 100%;
  height: 48px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
  transition: all 0.3s ease;
}

.submitButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

.submitButton:active {
  transform: translateY(0);
}

.tipSection {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.tipTitle {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.tipTitle::before {
  content: "💡";
  margin-right: 8px;
}

.tipContent {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.tipItem {
  margin-bottom: 8px;
  padding-left: 8px;
}

.tipItem:last-child {
  margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .formContainer {
    padding: 12px;
  }
  
  .sectionTitle {
    font-size: 15px;
    padding: 14px 14px 6px 14px;
  }
  
  .formItem {
    padding: 10px 14px;
  }
  
  .input, .textarea {
    padding: 10px;
    font-size: 13px;
  }
  
  .submitButton {
    height: 44px;
    font-size: 15px;
  }
  
  /* 移动端滚动条样式调整 */
  .formContainer::-webkit-scrollbar {
    width: 4px;
  }
}

/* 图片预览样式优化 */
:global(.adm-image-uploader-cell) {
  margin-right: 8px;
  margin-bottom: 8px;
}

:global(.adm-image-uploader-cell-image) {
  border-radius: 8px;
  object-fit: cover;
}

:global(.adm-image-uploader-cell-mask) {
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.5);
}

:global(.adm-image-uploader-cell-delete) {
  background-color: #ff4d4f;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 滚动条动画效果 */
.formContainer {
  scroll-behavior: smooth;
}

/* 为了更好的用户体验，添加滚动指示器 */
.formContainer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(24, 144, 255, 0.1), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.formContainer:hover::before {
  opacity: 1;
}